package kr.hkit.powerjava.chapter12;

class Tv implements RemoteControl {

	@Override
	public void trunOn() { //인터페이스 구현할 때는 public 붙여야함
		System.out.println("TV ON");
	}

	@Override
	public void turnOff() {
		System.out.println("TV OFF");
		
	}
}

class Car implements RemoteControl {

	@Override
	public void trunOn() {
		System.out.println("Car ON");
	}

	@Override
	public void turnOff() {
		System.out.println("Car OFF");
		
	}
	
}

public interface RemoteControl { 
	public abstract void trunOn();
	void turnOff(); //인터페이스로 선언하면 public abstract 숨겨져있음. 같은 의미
	
}




